/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

import java.awt.print.Book;

/**
 * <p>Project: jse2204 - StudentDemo
 * <p>Powered by webrx On 2022-10-11 10:43:15
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class StudentDemo {
    public static void main(String[] args) {
        //Student stu = new Student(10,"李四","郑州");
        //System.out.println(stu.address());
        //System.out.println(stu);

        record Book(int id,String bookname){};


        //@Data @AllArgsConstructor
        //class Book{
        //    private int id;
        //    private String name;
        //}


        System.out.println(new Book(100,"java入门").bookname);
        System.out.println(new Book(200,"数据库技术"));

    }
}
